##! /bin/bash
#! bash
#
#  $Id: to_month.sh 3 2010-05-27 16:25:49Z alistair.mills@btinternet.com $
#

### Main script stars here ###
# Store file name  here
export       OUTPUT=$1
export      OUTPUT2=$2
[ -f $OUTPUT  ] && rm $OUTPUT
[ -f $OUTPUT2 ] && rm $OUTPUT2
for mon in 01 02 03 04 05 06 07 08 09 10 11 12
do
    . ./months.sh
    echo Adding $mon as $month
    echo "insert into \`tblMonth\` (\`mon\` ,    \`month\` ) \
                          values ( \"$mon\",    \"$month\" );" >> $OUTPUT
    echo                          "\"$mon\";\"$month\""        >> $OUTPUT2
done
#
#
#
